package cate.common.table.activity.dungeonup;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "特殊控制")
public class DUSpecialControlRow extends ERow {

    @NoteField(value = "楼层 ")
    public int floor;

    @NoteField(value = "自选一不出次数")
    public int noTimesOne;

    @NoteField(value = "自选二不出次数")
    public int noTimesTwo;

    @NoteField(value = "活动配置ID")
    public int configId;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID");
        this.floor = xrw.getInteger("楼层ID",1);
        this.noTimesOne = xrw.getInteger("自选一不出次数", 0);
        this.noTimesTwo = xrw.getInteger("自选二不出次数", 0);
        this.configId = xrw.getInteger("活动配置ID");
    }
}
